<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

		<nav class="navbar navbar-inverse" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="<c:url value="/poslogin"/>">PFM</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="<c:url value="/poslogin/lancamento/adiciona"/>">Lan&ccedil;amentos</a></li>
        <li class="dropdown">
        	<a href="#" class="dropdown-toggle" data-toggle="dropdown">Controle de Receita</a>
        	<ul class="dropdown-menu">
        		<li>
        			<a href="<c:url value="/poslogin/grafico"/>">Gastos por Institui&ccedil;&atilde;o</a>
        		</li>
        		<li>
        			<a href="<c:url value="/poslogin/grafico/gastoNoMes/${anoCorrente}/${mesCorrente}"/>">Gastos No M&ecirc;s</a>
        		</li>
        	</ul>        	
		</li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Consultar Faturas<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">Todas faturas</a></li>
            <li class="divider"></li>
            <c:forEach items="${instituicoes}" var="instituicao">
            	<li>
            		<a href="<c:url value="/poslogin/faturas?idInstituicao=${instituicao.id}"/>">
            			${instituicao.nome}
					</a>
				</li>
            </c:forEach>
          </ul>
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
              <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Configura&ccedil;&otilde;es <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<c:url value="/poslogin/instituicoes"/>">Institui&ccedil;&atilde;o</a></li>
            <li class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
        
        <li><a href="<c:url value="/logout"/>">Sair do sistema</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>